<?php


namespace app\api\controller;


use app\api\logic\ConfigLogic;

class ConfigController extends BaseShopController
{
    public array $notNeedLogin = ['config','agreement'];


    /**
     * @notes 基础配置信息
     * @return \think\response\Json
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\DbException
     * @throws \think\db\exception\ModelNotFoundException
     * @author ljj
     * @date 2022/2/23 10:31 上午
     */
    public function config()
    {
        $result = (new ConfigLogic())->config();
        return $this->success('获取成功',$result);
    }

    /**
     * @notes 政策协议
     * @return \think\response\Json
     * @author ljj
     * @date 2022/2/23 11:42 上午
     */
    public function agreement()
    {
        $result = (new ConfigLogic())->agreement();
        return $this->success('获取成功',$result);
    }
}